package com.yjb.auth.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yjb.auth.entity.SysUser;
import com.yjb.auth.mapper.SysUserMapper;
import com.yjb.auth.service.SysUserService;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {
    @Override
    public SysUser getByUsername(String username) {
        return getOne(Wrappers.<SysUser>query().lambda().eq(SysUser::getUsername, username));
    }
}
